project(func-stack-backtrace)

set(UNWIND_INSTALL_DIR /home/sdc/unwind-install/x86)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g ")

aux_source_directory(. STACK_SRC_FILES)

add_library(${PROJECT_NAME} SHARED ${STACK_SRC_FILES})

target_include_directories(${PROJECT_NAME} PRIVATE ${UNWIND_INSTALL_DIR}/include)

target_link_directories(${PROJECT_NAME} PUBLIC ${UNWIND_INSTALL_DIR}/lib)
target_link_libraries(${PROJECT_NAME} PUBLIC unwind)

target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR})
